package com.cbgolf.oa.presenter;

import com.cbgolf.oa.contract.ICloseParkContract;
import com.cbgolf.oa.entity.Beans;
import com.cbgolf.oa.model.CloseParkModelImpl;

/**
 * Author: lq
 * Created on 2018/6/5
 * @author lq
 */
public class CloseParkPresenterImpl implements ICloseParkContract.Presenter {

  private ICloseParkContract.Model model;
  private ICloseParkContract.View view;

  @Override
  public void init(ICloseParkContract.View view) {
    this.view = view;
    model = new CloseParkModelImpl();
  }

  @Override
  public void unInit() {

  }



  @Override
  public void addClosePark(Beans beans) {
    view.showProgress();
    model.addClosePark(beans);
  }

  @Override
  public void cancelClosePark(String id) {
    view.showProgress();
    model.cancelClosePark(id);
  }
}